﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Runtime.Serialization;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace MyMeetup.Entities
{
    public class Answer
    {
        public string answer { get; set; }
        public string question { get; set; }
        public int question_id { get; set; }
    }

    public interface IProfile
    {
        string visited { get; set; }
        string profile_url { get; set; }
        string bio { get; set; }
        string status { get; set; }
        string updated { get; set; }
        string created { get; set; }
        string photo_url { get; set; }
        string name { get; set; }
        List<Answer> answers { get; set; }
        string role { get; set; }
        long member_id { get; set; }

    }

    public class Profile : IProfile
    {
        public string visited { get; set; }
        public string profile_url { get; set; }
        public string bio { get; set; }
        public string status { get; set; }
        public string updated { get; set; }
        public string created { get; set; }
        public string photo_url { get; set; }
        public string name { get; set; }
        public List<Answer> answers { get; set; }
        public string role { get; set; }
        public long member_id { get; set; }
    }

    public class Meta
    {
        public string lon { get; set; }
        public int count { get; set; }
        public string link { get; set; }
        public string next { get; set; }
        public int total_count { get; set; }
        public string url { get; set; }
        public string id { get; set; }
        public string title { get; set; }
        public string updated { get; set; }
        public string description { get; set; }
        public string method { get; set; }
        public string lat { get; set; }
    }

    [DataContract]
    public class Profiles
    {
        [DataMember(Name = "results")]
        public List<Profile> Items { get; set; }
        public Meta meta { get; set; }
    }
}
